

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>Create Guser</title>         
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span>
            <span class="menuButton"><g:link class="list" action="list">Guser List</g:link></span>
        </div>
        <div class="body">
            <h1>Create Guser</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${guser}">
            <div class="errors">
                <g:renderErrors bean="${guser}" as="list" />
            </div>
            </g:hasErrors>
            <g:form action="save" method="post" >
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="activationCode">Activation Code:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:guser,field:'activationCode','errors')}">
                                    <input type="text" id="activationCode" name="activationCode" value="${fieldValue(bean:guser,field:'activationCode')}"/>

                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="activationDate">Activation Date:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:guser,field:'activationDate','errors')}">
                                    <g:datePicker name="activationDate" value="${guser?.activationDate}" ></g:datePicker>

                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="email">Email:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:guser,field:'email','errors')}">
                                    <input type="text" id="email" name="email" value="${fieldValue(bean:guser,field:'email')}"/>

                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="loggedIn">Logged In:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:guser,field:'loggedIn','errors')}">
                                    <g:checkBox name="loggedIn" value="${guser?.loggedIn}" ></g:checkBox>

                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="name">Name:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:guser,field:'name','errors')}">
                                    <input type="text" id="name" name="name" value="${fieldValue(bean:guser,field:'name')}"/>

                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="password">Password:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:guser,field:'password','errors')}">
                                    <input type="text" id="password" name="password" value="${fieldValue(bean:guser,field:'password')}"/>

                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="profile">Profile:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:guser,field:'profile','errors')}">
                                    <g:select optionKey="id" from="${Gprofile.list()}" name="profile.id" value="${guser?.profile?.id}" ></g:select>

                                </td>
                            </tr> 
                        

                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="roles">Roles:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:guser,field:'roles','errors')}">

<g:select name="otm_grole_roles"
from="${Grole.list()}"
size="5" multiple="yes" optionKey="id"
value="${guser?.roles*.id}" />



                                </td>
                            </tr>



                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><input class="save" type="submit" value="Create" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
